package com.skyc.service.impl;

import java.util.List;

import com.skyc.dao.AddressDao;
import com.skyc.dao.impl.AddressDaoImpl;
import com.skyc.entity.Address;
import com.skyc.entity.User;
import com.skyc.service.AddressService;

public class AddressServiceImpl implements AddressService{
AddressDao as=new AddressDaoImpl();
	@Override
	public Address QueryById(int aid) {
		
		return as.QueryById(aid);
	}
	@Override
	public Address addAddress(Address address) {
		
		return as.addAddress(address);
	}
	@Override
	public List<Address> QueryByUid(User user) {
		
		return as.QueryByUid(user);
	}
	@Override
	public boolean DeleteByAid(Address address) {
		// TODO Auto-generated method stub
		return as.DeleteByAid(address);
	}
	@Override
	public boolean UpdateByDefault(String adefault) {
		// TODO Auto-generated method stub
		return as.UpdateByDefault(adefault);
	}
	@Override
	public boolean UpdateByAddressDefault(Address address) {
		// TODO Auto-generated method stub
		return as.UpdateByAddressDefault(address);
	}

}
